//
//  WXToolsModule.swift
//  mlz
//
//  Created by 吕凌 on 2018/5/9.
//  Copyright © 2018年 吕凌. All rights reserved.
//

import Foundation

public extension WXUtilsModule {
    
    @objc public func openURL(_ urlString: String) {
        if let url = URL(string: urlString) {
            //根据iOS系统版本，分别处理
            if #available(iOS 10, *) {
                UIApplication.shared.open(url, options: [:],
                                          completionHandler: {
                                            (success) in
                })
            } else {
                UIApplication.shared.openURL(url)
            }
        }
    }
}
